<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>乐淘购物车(键盘敲难,月薪过o.o9亿)</title>
    <!-- 引入font文件 -->
    <link rel="stylesheet" href="./assets/fontAwesome/css/font-awesome.css">
    <!-- 引入mui样式 -->
    <link rel="stylesheet" href="./assets/mui/css/mui.css">
    <!-- 公共样式 -->
    <link rel="stylesheet" href="./css/common.css">
    <!-- 首页样式 -->
    <link rel="stylesheet" href="./css/cart.css">
</head>

<body>
    <!-- 头部 -->
    <!-- mui-action-back 类 可以实现返回上一页  -->
    <header id="lt_header" class="mui-bar mui-bar-nav">
        <h1 class="mui-title">购物车</h1>
        <!-- <a class="fa fa-search mui-pull-right"></a> -->
        <a href="javascript:;" class="mui-action-back fa fa-arrow-left h-left"></a>
        <a href="javascript:;" class="mui-action-back fa fa-refresh h-right"></a>
    </header>

    <!-- 内容 -->
    <div class="lt_view">
        <div class="lt_content">
            <ul id="lt_goods_list" class="mui-table-view">

           
                
            </ul>
        </div>
    </div>

    <!-- 订单总额 -->
    <div class="order">
        <div class="total_order">订单总额: ¥<span class="total_price"> 0.00</span></div>
        <div class="order_create">生成订单</div>
    </div>


    <!-- 尾部 -->
    <div class="lt_footer">
        <a href="javascript:;">
            <span class="fa fa-home"></span>
            <div class="link-name">首页</div>
        </a>
        <a href="./category.html">
            <span class="fa fa-bars"></span>
            <div class="link-name">分类</div>
        </a>
        <a href="javascript:;"  class="active">
            <span class="fa fa-shopping-cart"></span>
            <div class="link-name">购物车</div>
        </a>
        <a href="javascript:;">
            <span class="fa fa-user"></span>
            <div class="link-name">会员中心</div>
        </a>
    </div>


</body>
<!-- mui.js 不依赖其他 -->
<script src="./assets/mui/js/mui.js"></script>
<!-- 方便我们自己开发 zepto -->
<script src="./assets/zepto/zepto.js"></script>
<!-- 公共的js -->
<script src="./js/common.js"></script>
<!-- 自己的js index.js -->
<script src="./js/cart.js"></script>
<!-- 引入模板文件 -->
<script src="./assets/arttemplate/template-web.js"></script>

<!-- 模板 -->
<script type="text/template" id="mainTpl"> 
    {{each arr value index}}
         <li data-obj="{{value}}" class="lt_good mui-table-view-cell mui-transitioning mui-selected">
                <div class="mui-slider-right mui-disabled mui-selected">
                    <a class="item_edit mui-btn mui-btn-blue fa fa-edit" style="transform: translate(0px, 0px);"></a>
                    <a class="item_delete mui-btn mui-btn-red fa fa-trash" style="transform: translate(-60px, 0px);"></a>
                </div>
                <div class="mui-slider-handle" style="transform: translate(0px, 0px);">
                    <div class="mui-table-cell">
                        <!-- 内容 -->
                        <div class="goods_item">
                            <!-- 左 -->
                            <div class="item_left">
                                <img src="{{value.pic[0].picAddr}}" alt="">
                                <input type="checkbox" class="goods_chk">
                            </div>
                            <!-- 右 -->
                            <div class="item_right">
                                <div class="goods_name">{{value.proName}}</div>
                                <div class="goods_price">
                                    <span class="new_price">¥{{value.price}}</span>
                                    <del>¥{{value.oldPrice}}</del>
                                    <span class="goods_num">×{{value.num}}双</span>
                                </div>
                                <div class="goods_size">
                                    鞋码:{{value.size}}
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </li>
    {{/each}}
</script>

</html>